package com.hgl.service;

import java.util.List;

import com.hgl.dto.HglDTO;
import com.hgl.entity.Hgl;
import com.hgl.exception.PasswordErrorException;
import com.hgl.exception.UserNotExistsException;
import com.hgl.vo.HglVO;

/**
 * <pre>
 * - 文章的业务逻辑
 * ClassName : com.teach.service.ArticleService
 * Author : J.L.Zhou
 * E-Mail : 2233875735@qq.com
 * Date : 2020年7月24日 下午3:43:31
 * Version : 1.0
 * Copyright 2020 jlzhou.top Inc. All rights reserved. 
 * Warning: this content is only for internal circulation of the company. 
 * It is forbidden to divulge it or use it for other commercial purposes.
 * </pre>
 **/
public interface HglService {

	List<HglVO> list();

	void add(HglDTO HglDTO);

	int deleteById(int id);

	List<Hgl> selectById(int id);
	
	
	List<HglVO> selectBylen(int len);
	/**
	 * 
	 * @param 判断用户名是否存在
	 * @return
	 */
	boolean existsUserName(String UserName);

	int add(Hgl mb);
	/**
	 * 获取一条用户信息
	 * @param hglId
	 * @return
	 */
	Hgl get(Integer hglId);
	
	
	int update(Hgl hgl);

	int updateById(Hgl mb);
	
	List<Hgl> list(int current, int rowMax);

	int count();
	
	List<Hgl> search(String name);
	
//	Hgl login2(String hglName,String hglGrade)throws UserNotExistsException,PasswordErrorException;


}
